package com.engine4cloud.tdf.supervision.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.engine4cloud.tdf.common.core.constant.enums.InvAuditActionStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 调查评估审核-审核
 *
 * @author pig
 * @date 2024-02-29 11:13:01
 */
@Data
@TableName("dcpg_audit_result")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "调查评估审核-审核")
public class DcpgAuditResultEntity extends Model<DcpgAuditResultEntity> {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 调查评估编号
     */
    @Schema(description = "调查评估编号")
    private String dcpgbh;

    /**
     * 审核人
     */
    @Schema(description = "审核人")
    private String shry;

    /**
     * 审核时间
     */
    @Schema(description = "审核时间")
    private LocalDateTime shsj;

    /**
     * 审核结果
     */
    @Schema(description = "审核结果")
    private InvAuditActionStatusEnum shjg;

    /**
     * 审核说明
     */
    @Schema(description = "审核说明")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String shsm;

    /**
     * 先前的部门id
     */
    @Schema(description = "先前的部门id")
    private Long preDeptId;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}